def fact(n):
    s = 1
    for i in range(1, n + 1):
        s *= i
    return s


def fprint():
    print("我也是函数")


def fact2(n, m=9):
    s = 1
    for i in range(1, n + 1):
        s *= i
    return s // m


def fact3(n, *b):  # *b表示可变参数
    s = 1
    for i in range(1, n + 1):
        s *= i
    for item in b:
        s *= item
    return s


def fact4(n, m=1):
    s = 1
    for i in range(1, n + 1):
        s *= i
    return s // m, n, m


print(fact(10))
print(fact2(10))
print(fact3(10, 3))
print(fact3(10, 3, 2))
print(fact4(10, 3))
